package com.mybatis.service.shop.impl;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mybatis.basic.entity.AjaxJson;
import com.mybatis.basic.service.impl.BasicServiceImpl;
import com.mybatis.dao.shop.GoodsPropertyDao;
import com.mybatis.dao.shop.GoodsPropertyValueDao;
import com.mybatis.entity.shop.GoodsBase;
import com.mybatis.entity.shop.GoodsProperty;
import com.mybatis.entity.shop.GoodsPropertyValue;
import com.mybatis.service.shop.GoodsPropertyService;
import com.mybatis.service.shop.GoodsPropertyValueService;

@Service
public class GoodsPropertyValueServiceImpl extends BasicServiceImpl<GoodsPropertyValue> implements GoodsPropertyValueService{

	private static final Logger Log = Logger.getLogger(GoodsPropertyValueServiceImpl.class);

	@Autowired
	private GoodsPropertyValueDao goodsPropertyValueDao;

	@Override
	public AjaxJson add(GoodsPropertyValue goodsPropertyValue) {
		AjaxJson ajaxJson = new AjaxJson();
		try {
			
			ajaxJson.setSuccess(true);
			ajaxJson.setMsg("添加成功");
		} catch (Exception e) {
			e.printStackTrace();
			ajaxJson.setSuccess(false);
			ajaxJson.setMsg("程序出错，添加失败");
		}
		return ajaxJson;
	}

	@Override
	public AjaxJson queryOne(Integer id) {
		AjaxJson ajaxJson = new AjaxJson();
		try {
			ajaxJson.setSuccess(true);
		} catch (Exception e) {
			e.printStackTrace();
			ajaxJson.setSuccess(false);
			ajaxJson.setMsg("查询失败");
		}
		return ajaxJson;
	}

	@Override
	public AjaxJson queryListByPage(Integer proId,Integer page,Integer rows) {
		AjaxJson ajaxJson = new AjaxJson();
		try {
			
		} catch (Exception e) {
			e.printStackTrace();
			ajaxJson.setSuccess(false);
			ajaxJson.setMsg("程序出错，查询失败");
		}
		return ajaxJson;
	}

	@Override
	public AjaxJson del(Integer id) {
		AjaxJson ajaxJson = new AjaxJson();
		try {
			
		} catch (Exception e) {
			e.printStackTrace();
			ajaxJson.setSuccess(false);
			ajaxJson.setMsg("程序错误，操作失败");
		}
		return ajaxJson;
	}

	@Override
	public AjaxJson mod(GoodsPropertyValue goodsPropertyValue) {
		AjaxJson ajaxJson = new AjaxJson();
		try {
			
		} catch (Exception e) {
			e.printStackTrace();
			ajaxJson.setSuccess(false);
			ajaxJson.setMsg("程序错误，操作失败");
		}
		return ajaxJson;
	}
	
}
